package org.easybuy.serviceimpol;

import java.util.List;

import org.easybuy.dao.CommodityCategoryDao;
import org.easybuy.daoimpol.CommodityCategoryDaoImpol;
import org.easybuy.entity.CommodityCategory;
import org.easybuy.service.CommodityCategoryService;

public class CommdoityCategoryServiceImopl implements CommodityCategoryService {
	CommodityCategoryDao ccd = new CommodityCategoryDaoImpol();

	// 查询所有一级标题
	@Override
	public List<CommodityCategory> getAllFirstcCategories() {
		// TODO Auto-generated method stub
		return ccd.getAllFirstcCategories();
	}

	// 根据一级标题查询二级标题
	@Override
	public List<CommodityCategory> getAllSecondCategories(int parentId) {
		// TODO Auto-generated method stub
		return ccd.getAllSecondCategories(parentId);
	}

	// 根据一级标题查询三级标题
	@Override
	public List<CommodityCategory> getAllthreatCategories(int parentId) {
		// TODO Auto-generated method stub
		return ccd.getAllthreatCategories(parentId);
	}

}
